package com.example.tijianbackend.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cidetailedreport {

    @TableId("cidrId")
    private Integer cidrId;


    private String name;

    private String unit;

    private Double minrange;

    private Double maxrange;

    @TableField("normalValue")
    private String normalValue;

    @TableField("normalValueString")
    private String normalValueString;

    private Integer type;

    private String value;

    @TableField("isError")
    private Integer isError;

    @TableField("ciId")
    private Integer ciId;

    @TableField("orderId")
    private Integer orderId;

    public Cidetailedreport(Checkitemdetailed checkitemdetailed){

        this.name=checkitemdetailed.getName();
        this.unit=checkitemdetailed.getUnit();
        this.minrange=checkitemdetailed.getMinrange();
        this.maxrange=checkitemdetailed.getMaxrange();
        this.normalValue=checkitemdetailed.getNormalValue();
        this.normalValueString=checkitemdetailed.getNormalValueString();
        this.type=checkitemdetailed.getType();
        this.ciId=checkitemdetailed.getCiId();

    }

}